System, method, and computer program product to produce images for a near-eye light field display having a defect

ABSTRACT

A system, method, and computer program product are provided for producing images for a near-eye light field display. Defect information for a first pixel of a microdisplay of a near-eye light field display device is received and a second pixel of the microdisplay is identified, where the first pixel and the second pixel contribute to a portion of the retinal image. Based on the defect information, a value of the second pixel within an array of elemental images is modified to produce a corrected array of elemental images for display by the microdisplay. An optical apparatus of the near-eye light field display device may, for example, be a microlens of a microlens array positioned between a viewer and an emissive microdisplay or a pinlight of a pinlight array positioned behind a transmissive microdisplay relative to the viewer.

CLAIM OF PRIORITY

This application is a continuation-in-part of U.S. Non-Provisional application Ser. No. 14/160,497, filed Jan. 21, 2014, which claims the benefit of U.S. Provisional Application No. 61/824,914, filed May 17, 2013, the entire contents of these applications are incorporated herein by reference.

FIELD OF THE INVENTION

The present invention relates to a producing images, and more specifically to producing images for a near-eye light field display.

BACKGROUND

Near-eye displays (NEDs) include head-mounted displays (HMDs) that may project images directly into a viewer's eyes. Such displays may overcome the limited screen size afforded by other mobile display form factors by synthesizing virtual large-format display surfaces, or may be used for virtual or augmented reality applications. One type of NED is a near-eye light field display that may be implemented as a thin lightweight head-mounted display that includes microlenses configured between a viewer's eye and a microdisplay. Such a near-eye light field display is capable of synthesizing light fields corresponding to virtual objects within a viewer's natural accommodation range.

As the pixel resolution of the microdisplay increases, the quality of the synthesized light field increases. However, the number of defective pixels in the microdisplay may also increase as the resolution of the microdisplay increases. Thus, there is a need for addressing this issue and/or other issues associated with the prior art.

SUMMARY

A system, method, and computer program product are provided for producing images for a near-eye light field display. Defect information for a first pixel of a microdisplay of a near-eye light field display device is received and a second pixel of the microdisplay is identified, where the first pixel and the second pixel contribute to a portion of the retinal image. Based on the defect information, a value of the second pixel within an array of elemental images is modified to produce a corrected array of elemental images for display by the microdisplay. Values of one or more additional pixels within the array of elemental images may be modified to produce the corrected array of elemental images. An optical apparatus of the near-eye light field display device may, for example, be a microlens of a microlens array positioned between a viewer and an emissive microdisplay or a pinlight of a pinlight array positioned behind a transmissive microdisplay relative to the viewer.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a flowchart of a method for producing elemental images for a near-eye light field display, in accordance with one embodiment.

FIG. 2A illustrates an eye of a viewer and a near-eye light field display, according to one embodiment.

FIG. 2B illustrates a binocular near-eye light field display, according to one embodiment.

FIG. 2C illustrates multiple pixels that contribute to a portion of a virtual image produced by a binocular near-eye light field display, according to one embodiment.

FIG. 2D illustrates another binocular near-eye light field display, according to one embodiment.

FIG. 3A illustrates an existing image to be processed for display by a near-eye light field display device, according to one embodiment.

FIG. 3B illustrates a microdisplay image comprising an elemental image corresponding to each microlens, according to one embodiment.

FIG. 3C illustrates the microdisplay image of FIG. 3B viewed through a microlens array, according to one embodiment.

FIG. 3D illustrates an elemental image produced without anti-aliasing and an elemental image produced with anti-aliasing, according to one embodiment.

FIG. 3E illustrates another existing image to be processed for display by a near-eye light field display device, according to one embodiment.

FIG. 3F illustrates a microdisplay image comprising an elemental image corresponding to each pinlight in a pinlight array, according to one embodiment.

FIG. 4 illustrates a parallel processing unit, in accordance with one embodiment;

FIG. 5A illustrates a general processing cluster of the parallel processing unit of FIG. 4, in accordance with one embodiment.

FIG. 5B illustrates a partition unit of the parallel processing unit of FIG. 4, in accordance with one embodiment.

FIG. 6A illustrates the streaming multi-processor of FIG. 5A, in accordance with one embodiment.

FIG. 6B illustrates a flowchart of a method for producing images for the near-eye light field display devices of FIGS. 2A, 2B, 2C, and 2D, in accordance with one embodiment.

FIG. 6C illustrates another flowchart of a method for producing elemental images for the near-eye light field display devices of FIGS. 2A, 2B, 2C, and 2D, in accordance with one embodiment.

FIG. 6D illustrates subpixels within a pixel of a microdisplay and superimposed pixels at a virtual plane, in accordance with one embodiment.

FIG. 7 illustrates an exemplary computer system in which the various architecture and/or functionality of the various previous embodiments may be implemented.

DETAILED DESCRIPTION

Reference will now be made in detail to the various embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings. While described in conjunction with these embodiments, it will be understood that they are not intended to limit the disclosure to these embodiments. On the contrary, the disclosure is intended to cover alternatives, modifications, and equivalents, which may be included within the spirit and scope of the disclosure as defined by the appended claims. Furthermore, in the following detailed description of the present disclosure, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it will be understood that the present disclosure may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present disclosure.

Some portions of the detailed descriptions that follow are presented in terms of procedures, logic blocks, processing, and other symbolic representations of operations on data bits within a computer memory. These descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. In the present application, a procedure, logic block, process, or the like, is conceived to be a self-consistent sequence of steps or instructions leading to a desired result. The steps are those utilizing physical manipulations of physical quantities. Usually, although not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer system. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as transactions, bits, values, elements, symbols, characters, samples, pixels, or the like.

It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present disclosure, discussions utilizing terms such as “displaying,” “generating,” “producing,” “calculating,” “determining,” “radiating,” “emitting,” “attenuating,” “modulating,” “transmitting,” “receiving,” or the like, refer to actions and processes (e.g., flowcharts 100 of FIG. 1) of a computer system or similar electronic computing device or processor (e.g., computing system 710 of FIG. 7). The computer system or similar electronic computing device manipulates and transforms data represented as physical (electronic) quantities within the computer system memories, registers or other such information storage, transmission or display devices.

Embodiments described herein may be discussed in the general context of computer-executable instructions residing on some form of computer-readable storage medium, such as program modules, executed by one or more computers or other devices. By way of example, and not limitation, computer-readable storage media may comprise non-transitory computer-readable storage media and communication media; non-transitory computer-readable media include all computer-readable media except for a transitory, propagating signal. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types. The functionality of the program modules may be combined or distributed as desired in various embodiments.

Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read only memory (ROM), electrically erasable programmable ROM (EEPROM), flash memory or other memory technology, compact disk ROM (CD-ROM), digital versatile disks (DVDs) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and that can be accessed to retrieve that information.

Communication media can embody computer-executable instructions, data structures, and program modules, and includes any information delivery media. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared, and other wireless media. Combinations of any of the above can also be included within the scope of computer-readable media.

As described herein, near-eye light field displays enable thin, lightweight head-mounted displays (HMDs) capable of presenting nearly correct convergence, accommodation, binocular disparity, and retinal defocus depth cues. The near-eye light field display device is positioned close to a user's eyes, closer than a near focus plane defining the user's accommodation range. A near-eye light field display allows a user wearing an eyeglass-type apparatus to view a synthetic image that appears to be positioned within the user's accommodation range.

Typically, objects positioned closer than a near focus plane appear blurry. However, images displayed using the near-eye light field display device may appear in focus to a viewer. Sharp images may be depicted by the near-eye light field display device when light fields corresponding to virtual objects within the user's natural accommodation range are synthesized. Simply displaying existing two-dimensional monoscopic, stereoscopic, and multiscopic content suitable intended for display by conventional display devices will not produce sharp images when displayed by the near-eye light field display device.

Therefore, existing two-dimensional monoscopic, stereoscopic, and multiscopic content suitable for display by conventional display devices should be processed to produce an image or images for display by the near-eye light field display device. An existing image that is desired to be displayed may be processed to generate a processed image that comprises an array of elemental images. Each elemental image is a view of the desired existing image corresponding to one microlens within a microlens array through which a user views the processed image. When the processed image is viewed through the microlens array, the user sees the desired existing image mapped to a virtual display plane that is within the user's natural accommodation range.

An alternative to a microlens array-based display device is a pinlight-based display device. A pinlight see-through near-eye display combines a pinlight array including at least one pinlight and a compact optical see-through display to produce a synthetic image in a viewer's field of view, even when placed so close that the viewer's eyes cannot accommodate in terms of focusing (i.e., the optical see-through display is placed closer than the near focus plane). When a pinlight-based near-eye light field display device is used, each elemental image is a view of the desired existing image corresponding to one pinlight within a pinlight array. The user views the pinlight array through a transmissive display layer that encodes the processed image (i.e., light rays generated by the pinlight array are projected through the display layer). When the processed image is viewed through the transmissive display layer that is positioned in front of the pinlight array, the user sees the desired existing image mapped to a virtual display plane that is within the user's natural accommodation range.

However, when a pixel of the microdisplay that produces the processed image is defective, the image seen by the viewer at the virtual display plane (i.e., the virtual or synthesized image) may not match the desired existing image. The elemental image that includes the defective pixel will contribute to a portion of the synthesized image and other elemental images in the elemental image array also contribute to the same portion of the synthesized image. Therefore, values of pixels in the other elemental images may be modified (i.e., changed or adapted) to compensate for the defective pixel and improve the quality of the synthesized image. Because the redundancy of the elemental images may be exploited to compensate for defective pixels, a less expensive microdisplay having more pixel defects may be used to produce a synthesized image of similar quality, in terms of resolution, to an image produced by a conventional display having fewer pixel defects. Conventional displays lack redundancy because each pixel of the conventional display uniquely controls the appearance of a point in a scene.

FIG. 1 illustrates a flowchart of a method 100 for producing elemental images for a near-eye light field display device, in accordance with one embodiment. In one embodiment, the steps shown in FIG. 1 may be performed by a processor configured to execute a graphics shader program. At step 105, defect information for a first pixel of a microdisplay of a near-eye light field display device is received. The defect information may indicate one or more pixels have particular defects. In the context of the following description, a microdisplay is a backlit transmissive display such as an LCD (liquid crystal display) panel, or an emissive display such as an OLED (organic light-emitting diode) panel or chip. The near-eye light field display device includes the microdisplay. Examples of defects include those defined by the ISO 13406-2 standard for flat panel displays, such as a type-1 “hot” pixel defect (i.e., a group of color subpixels are continuously illuminated), a type-2 “dead” pixel defect (i.e., a pixel appears continuously dark), and a type-3 defect (i.e., a single color subpixel that is either continuously on or off). Another example defect include temporally-varying defects, such as pixels that “flash” or “blink”.

In one embodiment, the microdisplay is an emissive display that is configured to be viewed through a two-dimensional array of microlenses, where each microlens is an optical apparatus that, in combination with a pixel of the microdisplay may define a ray. The ray extends to a viewer's retina to produce a portion of a retinal image corresponding to a portion of the synthesized image that appears at a virtual display plane. In the context of the present description, the virtual display plane is a virtual plane that appears to the viewer to be positioned at or beyond the near focus plane. In one embodiment, the virtual display plane is in front of a far plane beyond which objects may appear out of focus to the viewer.

In the context of the following description, an array of microlenses is a two-dimensional array including at least two microlenses. In one embodiment, the near-eye light field display device is embodied in an eyeglass form factor that includes two microdisplays and two microlens arrays to form a binocular near-eye light field display device, where a first microdisplay and microlens array set is associated with a user's left eye and a second microdisplay and microlens array set is associated with a user's right eye. In another embodiment, the near-eye light field display device is embodied in an eyeglass form factor that includes one microdisplay and one microlens array to form a monocular near-eye light field display device, where the microdisplay and microlens array set is associated with either a user's left eye and or a user's right eye.

In another embodiment, the microdisplay is a transmissive (i.e., of variable opacity and color, capable of becoming substantially transparent) display that is positioned between a viewer and a two-dimensional array of pinlights, where each pinlight is an optical apparatus. The pinlight array is viewed through the microdisplay. A ray may be defined by a pixel of the microdisplay and a pinlight in the pinlight array.

In one embodiment, the near-eye light field display is implemented as a tensor display, for example as described by Wetzstein et al, “Tensor Displays: Compressive Light Field Synthesis Using Multilayer Displays with Directional Backlighting,” ACM Transactions on Graphics SIGGRAPH 2012 Conference Proceedings. Volume 31 Issue 4, July 2012. In one embodiment, the near-eye light field display is implemented using multiple light modulation layers, for example, as described by Maimone et al, “Computational Augmented Reality Eyeglasses,” Proceedings of the 2013 IEEE International Symposium on Mixed and Augmented Reality, October 2013, pages 29-38. A display assembly may comprise a microdisplay and an optical apparatus, where the optical apparatus may comprise one or more microlenses, one or more pinlights, one or more pinholes, or one or more transmissive layers included in a tensor display assembly.

A first ray intersects the first pixel and a portion of a retinal image, so that a value of the pixel (e.g., color and/or intensity) contributes to the portion of the retinal image. At step 110, a second pixel of the microdisplay is identified, and the second pixel contributes to the same portion of the retinal image that the first pixel contributes to. In one embodiment, the portion of the retinal image is a “pixel” or point of the retinal image and the first and second pixels of the microdisplay are superimposed at the portion of the retinal image when light projected from the first and second pixels intersects at the retina. A second ray intersects the second pixel and a portion of a retinal image, so that a value of the pixel (e.g., color and/or intensity) contributes to the portion of the retinal image. One or more additional pixels may also contribute to the same portion of the retinal image as the first and second pixels, where additional rays defined by each of the additional pixels and optical apparatus (e.g., lens, pinlight, or pinhole) extends to the same portion of the retinal image.

At step 115, based on the defect information, a value of the second pixel within an array of elemental images is modified to produce a corrected array of elemental images for display by the microdisplay. The value of the second pixel is modified to at least partially compensate for the defective first pixel.

More illustrative information will now be set forth regarding various optional architectures and features with which the foregoing framework may or may not be implemented, per the desires of the user. It should be strongly noted that the following information is set forth for illustrative purposes and should not be construed as limiting in any manner. Any of the following features may be optionally incorporated with or without the exclusion of other features described.

FIG. 2A illustrates an eye 205 of a viewer and a near-eye light field display device 200, according to one embodiment. In one embodiment, an eyebox 206 defines characteristics of the eye 205, such as expected diameters, orientations (i.e., rotations), and positions of the pupil. A width of the eyebox 206 is shown in FIG. 2A as w_(e). Objects between the eye 205 and a near focus plane 220 are too close to the eye 205 to be clearly seen because the eye 205 cannot focus on objects that are closer to the eye 205 than the near focus plane 220. The eye 205 is able to focus on objects that are at or beyond (i.e., further away) the near focus plane 220. Objects that are very far away may also not appear clearly and a range referred to as an accommodation range within which objects may appear clearly is bounded by the near focus plane 220 and a far plane (not shown) that is a distance from the near focus plane 220 equal to the accommodation range. Because conventional eyeglasses are positioned closer to the eye 205 than the near focus plane 220, an image that is displayed on the surface of conventional eyeglasses will not be clear to the viewer. Similarly, an existing image that is displayed by a microdisplay 250 will not be clear to the viewer.

The microdisplay 250 is separated from a microlens array 255 by a distance d_(l). The microlens array 255 is positioned at a distance d_(e) that corresponds to an eye relief distance. A microdisplay image displayed by the microdisplay 250 appears to the viewer to be mapped to a virtual display plane 210 that is positioned at a virtual display distance d_(v) from the eye 205. The microdisplay image may be produced from an existing image. The distance d_(v) may be different for each eye 205, allowing for correction of the viewer's optical aberrations (i.e., an eyeglass prescription). The width of the virtual display plane 210 is w_(v) and the width of the microdisplay 250 is w_(s).

Typically, a three-dimensional scene will be rendered to generate a two-dimensional (2D) image for display by the microdisplay 250. A microdisplay image that is displayed by the microdisplay 250 includes an elemental image corresponding to a view for each microlens in the microlens array 255. For example, an elemental image is displayed at the elemental image region 225 corresponding to the microlens 253. The elemental image region 225 is a two dimensional region having a width of Δw_(s), and is defined as the intersection at the microdisplay 250 of a projection from the pupil (retina) of the eye 205 through the microlens 253. Each elemental image region and corresponding microlens (e.g., elemental image region 225 and microlens 253) acts as an independent lens-limited magnifier, synthesizing an off-axis perspective projection of a virtual image located a distance d_(v) from the eye 205 (i.e., at the virtual display plane 210). Portions of the virtual image are repeated across the different elemental image regions as shown in FIG. 3B.

Rendering a 3D scene to produce a microdisplay image for display by the microdisplay 250 requires rendering each elemental image that is included in the microdisplay image. In contrast, only a single image is rendered for display by a conventional display device. In some cases, the 3D scene is not available to be rendered, such as for existing content comprising conventional 2D images. However, the existing content intended for display by a conventional display device may be processed for display by the microdisplay 250. In particular, existing stereoscopic image pairs are widely available for 3D television, and the existing stereoscopic image pairs may be processed for display by the microdisplay 250.

FIG. 2B illustrates a binocular near-eye light field display device 260, according to one embodiment. The binocular near-eye light field display device 260 includes a left microdisplay 251 that is paired with a left microlens array 256 and a right microdisplay 252 that is paired with a right microlens array 257. The left microdisplay 251 and the right microdisplay 252 are separated by a distance b_(s) measured from the right edge of the left microdisplay 251 to the left edge of the right microdisplay 252. The interpupillary distance between centers of the pupils of the viewer's left and right eyes is b_(e). The near-eye light field display device 260 emulates the appearance of a conventional stereoscopic display located a distance d_(v) from the viewer (i.e., at the virtual display plane 210). In one embodiment, b_(e) is a fixed, average distance such as an interocular distance rather than a dynamically sampled interpupillary distance.

A viewer looking through the near-eye light field display device 260 will perceive a rectangular virtual display surface at the virtual image plane 210 onto which corresponding left and right eye views of an existing stereoscopic image pair are appear. To generate a pair of microdisplay images from an existing stereoscopic image pair, the virtual image plane 210 may be texture mapped with the left and right eye views, and a pair of texture maps is stored for an existing stereoscopic image pair. The left and right eye frustums are indicated by dashed lines in FIG. 2B. For a monoscopic existing image, only one existing image is stored as a texture map that is used to determine pixel color for both the left microdisplay 251 and the right microdisplay 252. The existing image is mapped as a texture onto the virtual display plane 210 to produce a virtual image. Each pixel of the virtual image at the virtual display plane 210 corresponds to a color defined by the existing image. The virtual image is then used to compute colors for each pixel of the left microdisplay 251 and the right microdisplay 252. In simple terms, a color of a pixel on a microdisplay is computed by casting a ray from the pixel on the microdisplay to intersect the virtual display plane 210 and then calculating a color of the pixel on a microdisplay using one or more samples of the virtual image at the point of intersection.

The pseudo code shown in TABLE 1 may be included in a vertex shader program to map the existing image to the virtual display plane 210.

TABLE 1 Void (main( ){  // Evaluate interpolated texture coordinates.  gl_TexCoord[0] = gl_MultiTExCoord0;  //Emulate vertex transformation performed by a fixed-function pipeline  gl_Position = gl_ModelViewProjectionMatrix*gl_Vertex; }

Rendering images for the near-eye light field display device 260 requires assigning the color of each pixel of the left microdisplay 251 and right microdisplay 252 such that the emitted light field approximates a virtual image at the virtual display plane 210. The virtual image may include objects, such as the virtual object 230 that appear at different depths relative to the virtual display plane 210. For a pixel located a distance x_(s) from the center 215 of the left microdisplay 251, ray tracing may be employed to compute a color. The virtual object 230 appears displaced in front of the virtual display plane 210 as intended by the existing stereoscopic image pair. The depth of the virtual object 230 is not readily available after the 3D scene has been rendered to produce the existing stereoscopic image pair, but the intended displacements are substantially retained when a microdisplay stereoscopic image pair is generated for the existing stereoscopic image pair.

The pixel of the left microdisplay 251 is visible, to the viewer's left eye, through the left microlens array 256 having an optical center that is laterally displaced by a distance x_(l) from the center 215 of the left microdisplay 251. Any optical ray is defined by a point of a pixel on a microdisplay and a point at the optical center of the intersected microlens. As shown in FIG. 2B, the 3D coordinates of the center of the microlens and the pixel define an optical ray 235. Note, that the distances are described in terms of the coordinate x, and corresponding distances may also be defined in terms of the y coordinate to produce distances y_(l) and y_(s) relative to a reference point on the left microdisplay 251. When the pixel is defective, other pixels that contribute to the same portion of the virtual image at the virtual display plane 210 may be modified to compensate for the defective pixel, as described in conjunction with FIG. 2C.

The pseudo code shown in TABLE 2 may be included in a fragment shader program to define the dimensions shown in FIG. 2A and other system parameters as uniform variables.

TABLE 2   uniform sampler2D viewTexture; // texture map of existing image // microdisplay variables uniform vec2 microdisplayDim; // physical dimensions mm [w_(s)] uniform int microdisplayOrientation; // 0: upright, 1: inverted //microlens array variables uniform float microlensPitch; // pitch (mm) [w_(l)] uniform float microlensDist; // distance from microdisplay (mm) [d_(l)] uniform float microlensRotation; // rotation angle (radians) uniform vec2 microlensOffset; // alignment offsets (mm) uniform bool microlensExcludeBorder; // exclude partial microlenses // along the microdisplay border // elemental image variables uniform float elemenalImagePitch; // pitch (mm) [Δw_(s)] uniform vec2 elementalImageOffset; // offset from microdisplay origin (mm) uniform vec4 elemenalImageRange; // index range (min column, max column, // min row, max row) // Virtual display plane variables uniform vec2 screenDim; // physical dimensions (mm) [w_(v)] uniform float screenDist; // distance from microlens array (mm) [d_(v)] uniform vec2 screenPosition; // offset from microdisplay origin (mm) [o_(v)]

The displacement x_(s) may be evaluated for a texel having the texture map coordinates (s,t) based on the microdisplay orientation and dimensions. The pseudo code shown in TABLE 3 may be included in a fragment shader program to compute the displacement for a pixel relative to a reference point on a microdisplay, x_(s) (microdisplayCoord).

TABLE 3 vec2 microdisplayCoord; if (microdisplayOrientation == 0)  microdisplayCoord = microdisplayDim*(gl_TexCoord[0].st - 0.5); else  microdisplayCoord = microdisplayDim*(0.5 - gl_TexCoord[0].st);

The position of the optical center of the corresponding microlens, x_(l) may be evaluated based on the orientation of the microlens array and the displacement x_(s). The pseudo code shown in TABLE 4 may be included in a fragment shader program to compute the optical center of the corresponding microlens, x_(l) (microlensCoord).

TABLE 4 mat2 R = mat2(cos(microlensRotation), -sin(microlensRotation),  sin(microlensRotation), cos(microlensRotation) );; vec2 microlensIndex = floor(R*  (microdisplayCoord −elementalImageOffset)/elementalImagePitch); vec2 microlensCoord = transpose(R)*microlensPitch*microlensIndex + microlensOffset;

Then, the horizontal coordinate or displacement of the point of intersection of the optical ray 235 and the virtual display plane 210 (i.e., virtual image), x_(v) may be computed as:

$x_{v} = {x_{l} + {\left( \frac{d_{v} - d_{e}}{d_{l}} \right)\left( {x_{s} - x_{l}} \right)} - {o_{v}.}}$ A vertical coordinate may be similarly computed for the point of intersection of the optical ray 235 and the virtual display plane 210. In other embodiments, a reference location on the microdisplay 251 other than the center 215 may be used to determine the distances x_(s), x_(l), o_(v), and x_(v).

The pseudo code shown in TABLE 5 may be included in a fragment shader program to x_(v) (screenCoord).

TABLE 5   vec2 screenCoord = microlensCoord + (screenDist/microlensDist)* (microdisplayCoord- microlensCoord) - screenPosition;

The color of the pixel, gl_FragColor, may be computed by converting the screen coordinates (x_(v), y_(v)) to texture map coordinates (s,t). Because artifacts can result when a portion of the virtual image is visible through peripheral microlenses, pixels that are outside of the virtual display plane 210 are set to black when the microlensExcludeBorder Boolean variable is TRUE.

TABLE 6 vec2 texCoord = screenCoord/screenDim; if( ((texCoord.x>0.0) && (texCoord.x<1.0)) && ((texCoord.y>0.0) && (texCoord.y<1.0)) ) {  if ( !microlensExcludeBorder ||   ( ((microlensIndex.x > elementalImageRange.x) &&    (microlensIndex.x < elementalImageRange.y)) &&    (microlensIndex.y > elementalImageRange.z) &&    (microlensIndex.y < elementalImageRange.w)) ) )   gl_FragColor = vec4(texture2D(viewTexture, texCoord).rgb, 1);  else   gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0); } else  gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);

Ray tracing provides a direct estimate of the color of the pixel for the left microdisplay 251. Casting a set of rays defined by each pixel located within the elemental image region corresponding to a microlens provides estimates of the color of each pixel in an elemental image. Casting sets of rays for each elemental image region corresponding to a microlens provides estimates of the color of each pixel in the microdisplay image for the left microdisplay 251 and in the microdisplay image for the right microdisplay 252.

FIG. 2C illustrates multiple pixels that contribute to a portion of a virtual image produced by a binocular near-eye light field display, according to one embodiment. Three different pixels of the left microdisplay 251 contribute to the portion of the virtual image 238 at seen at the virtual display plane 210. A first pixel of the three pixels is defined by the optical ray 235 that passes through the first pixel and a first optical apparatus (microlens) of the left microlens array 256. A second pixel of the three pixels is defined by the optical ray 236 that passes through the first pixel and a first optical apparatus (microlens) of the left microlens array 256. A third pixel of the three pixels is defined by the optical ray 237 that passes through the first pixel and a first optical apparatus (microlens) of the left microlens array 256. The three optical rays 235, 236, and 247 each extend to the eyebox, but only the optical ray 236 actually intersects the retina and therefore contributes to the retinal image. Therefore, if the second pixel is not defective and eye-tracking information is available indicating that the optical rays 235 and 237 do not intersect the retinal image, no defect compensation is needed when the first and/or third pixels are defective. Eye-tracking information may indicate one or more of an orientation, position, size, and accommodation of the pupil.

In one embodiment, eye-tracking information may be provided by one or more cameras positioned to view a portion of the eye and surrounding facial tissue. In addition to the one or more cameras, a system may include, possibly programmable, illumination source(s), such as one or more light-emitting diodes (LED) or other light sources. The one or more cameras and/or one or more illumination sources may be further integrated into eyewear (e.g. in eyeglasses rims, frames, and/or temples). In one embodiment, a system includes light-sensitive elements (e.g. photodiodes) embedded into the display plane, so that, when viewed together with the microlens array, create a thin, lightweight light-field camera array that is co-located with the light-field display. Such a “bidirectional” design allows direct viewing of the eye, without additionally increasing the dimensions and/or weight of the eyewear. Infrared sources may also be embedded in the display plane or display backlight to eliminate the need for additional light sources.

Typically, the left microlens array 256 and right microlens array 257 each include more optical apparatus than are shown in FIG. 2C so that multiple optical rays defined by pixels of the left microdisplay 251 and the right microdisplay 252 do intersect the retina and contribute to the portion of the virtual image 238.

Ray-tracing may be used to identify each of the pixels that contribute to a “pixel” of the retinal image. A projection matrix P may be determined that defines the contribution of each microdisplay pixel to each retinal image point (assuming there are no pixel defects). Note that each microdisplay pixel may not contribute equally to a particular retinal image point. The projection matrix may be used to modify values of pixels to compensate for defective pixels in the left microdisplay 251 and the right microdisplay 252, as described in conjunction with FIG. 6C.

FIG. 2D illustrates a binocular near-eye light field display device 280, according to one embodiment. In contrast with the near-eye light field display device 260 shown in FIG. 2B that uses a lens (e.g., lens within the left microlens array 256 and right microlens array 257) as an optical apparatus positioned between a viewer and an emissive microdisplay (e.g., the left microdisplay 251 and the right microdisplay 252), the near-eye light field display device 280 uses a pinlight of a pinlight array positioned behind a transmissive microdisplay relative to the viewer. The binocular near-eye light field display device 260 includes a left microdisplay 271 that is paired with a left pinlight array 276 and a right microdisplay 272 that is paired with a right pinlight array 277.

The left microdisplay 271 and the right microdisplay 272 are separated by a distance b_(s) measured from the right edge of the left microdisplay 271 to the left edge of the right microdisplay 272. The interpupillary distance between centers of the pupils of the viewer's left and right eyes is b_(e). The near-eye light field display device 280 emulates the appearance of a conventional stereoscopic display located a distance d_(v) from the viewer (i.e., at the virtual display plane 210). In one embodiment, b_(e) is a fixed, average distance such as an interocular distance rather than a dynamically sampled interpupillary distance.

A viewer looking through the near-eye light field display device 280 will perceive a rectangular virtual display surface at the virtual image plane 210 that is texture mapped with corresponding left and right eye views of an existing stereoscopic image pair. Therefore, a pair of texture maps is stored for an existing stereoscopic image pair. In other embodiments, the virtual display surface may be a different shape that is not necessarily rectangular. The left and right eye frustums are indicated by dashed lines in FIG. 2C. For a monoscopic existing image, only one existing image is stored as a texture map that is used to determine pixel color for both the left microdisplay 271 and the right microdisplay 272. The existing image is mapped as a texture onto the virtual display plane 210 to produce a virtual image. Each pixel of the virtual image at the virtual display plane 210 corresponds to a color defined by the existing image. The virtual image is then used to compute colors for each pixel of the left microdisplay 271 and the right microdisplay 272. In simple terms, a color of a pixel on a microdisplay is computed by casting a ray from the pixel on the microdisplay to intersect the virtual display plane 210 and then calculating a color of the pixel on a microdisplay using one or more samples of the virtual image at the point of intersection.

Once colors for the pixels of the microdisplay have been computed, an array of elemental images is available that will produce the existing image when displayed on the microdisplay. When one or more pixels of the microdisplay are defective, values of the pixels in the array of elemental images may be modified to compensate for the defective pixels. A ray defined by the defective pixel and a pinlight extends to intersect the virtual display plane 210 and/or to the pupil (where the retinal image is produced) to identify a point of the virtual image at the virtual display plane 210 or the retinal image to which the defective pixel contributes. A set of rays may then be cast from the identified point of the virtual image or the that is intersected by the ray on the retinal image to identify other pixels of the microdisplay that also contribute to the point. Values of one or more of the other pixels may be modified to compensate for the defective pixel. In one embodiment, the one or more pixels having values that are modified may be determined using eye-tracking information. Values of one or more pixels that are immediately adjacent to the other pixels (i.e., neighboring pixels) may also be modified to compensate for the defective pixel.

As previously explained in conjunction with FIG. 2B, the pseudo code shown in TABLE 1 may be included in a vertex shader program to map the existing image to the virtual display plane 210. Rendering images for the near-eye light field display device 280 requires assigning the color of each pixel of the left microdisplay 271 and right microdisplay 272 such that the emitted light field approximates a virtual image at the virtual display plane 210. The virtual image may include objects, such as the virtual object 230 that appear at different depths relative to the virtual display plane 210. For a pixel located a distance x_(s) from the center 275 of the left microdisplay 271, ray tracing may be employed to compute a color. The virtual object 230 appears displaced in front of the virtual display plane 210 as intended by the existing stereoscopic image pair. The depth of the virtual object 230 is not readily available after the 3D scene has been rendered to produce the existing stereoscopic image pair, but the intended displacements are substantially retained when a microdisplay stereoscopic image pair is generated for the existing stereoscopic image pair.

The pixel is visible, to the viewer's left eye, at the left microdisplay 271 having an optical center that is laterally displaced by a distance x_(l) from the center 275 of the left microdisplay 271. Any optical ray is defined by a point of a pixel on a microdisplay and a point at the optical center of the intersected pinlight in the corresponding pinlight array. As shown in FIG. 2D, the 3D coordinates of the center of the intersected pinlight and the pixel define an optical ray 285. Note, that the distances are described in terms of the coordinate x, and corresponding distances may also be defined in terms of the y coordinate to produce distances y_(l) and y_(s) relative to a reference point on the left microdisplay 271.

The displacement x_(l) may be evaluated for a texel having the texture map coordinates (s,t) based on the microdisplay orientation and dimensions. The position of the optical center of the corresponding pinlight, x_(s), may be evaluated based on the orientation of the pinlight array and the displacement x_(l). Then, the horizontal coordinate or displacement of the point of intersection of the optical ray 285 and the virtual display plane 210 (i.e., virtual image), x_(v) may be computed as:

$x_{v} = {x_{l} + {\left( \frac{d_{v} - d_{e}}{d_{l}} \right)\left( {x_{s} - x_{l}} \right)} - {o_{v}.}}$ A vertical coordinate may be similarly computed for the point of intersection of the optical ray 285 and the virtual display plane 210. In other embodiments, a reference location on the microdisplay 271 other than the center 275 may be used to determine the distances x_(s), x_(l), o_(v), and x_(v).

A fragment shader program may be configured to compute the displacement for a pixel relative to a reference point on a microdisplay, x_(l) (microdisplayCoord), the optical center of the corresponding pinlight, x_(s) (pinlightCoord), and the horizontal coordinate x_(v) (screenCoord).

The color of the pixel, gl_FragColor, may be computed by converting the screen coordinates (x_(v), y_(v)) to texture map coordinates (s,t). Ray tracing provides a direct estimate of the color of the pixel for the left microdisplay 271. Casting a set of rays defined by each pixel located within the elemental image region corresponding to a pinlight provides estimates of the color of each pixel in an elemental image. Casting sets of rays for each elemental image region corresponding to a pinlight provides estimates of the color of each pixel in the microdisplay image for the left microdisplay 271 and in the microdisplay image for the right microdisplay 272. The resulting array of elemental images may then be processed to modify values of the pixels to compensate for defective pixels of the microdisplay.

FIG. 3A illustrates an existing image 300 to be processed for display by a near-eye light field display device, according to one embodiment. The existing image 300 is stored as a texture map (e.g., viewTexture) that is used to compute a color for each pixel of a microdisplay image. The existing image is synthesized by the near-eye light field display device when a retinal image is produced. The retinal image appears to the viewer as the existing image 300 positioned at the virtual display plane. The existing image 300 includes a portion of the existing image 305 that comprises at least one point or “pixel” of the existing image 300.

FIG. 3B illustrates a microdisplay image 310 comprising an elemental image corresponding to each microlens in the microlens array 255, according to one embodiment. The microdisplay image 310 may be displayed by the microdisplay 250, microdisplay 251, and/or microdisplay 252.

As shown in FIG. 3B, elemental images 315 includes 25 different elemental images that each have a pixel contributing to the same portion of the existing image 305 shown in FIG. 3A. The portion of the existing image 305 may be a single pixel or two or more neighboring pixels. When a contributing pixel in one of the elemental images is defective, one or more of the other contributing pixels may be modified to compensate for the defective pixel. For example, assume that the portion of the existing image 305 should be gray, with 50% values for each of the red, green, and blue subpixels. If the red subpixel of one pixel corresponding to the portion of the existing image 305 is stuck on at 100%, the value of the red subpixel of one or more of the 25 other pixels that also correspond to the portion of the existing image 305 may be reduced to compensate for the defective pixel. In one embodiment, neighboring pixels of the defective pixel and other contributing pixels may be modified to compensate for the defective pixel. In other words, the array of elemental images effectively encodes redundant image data that may be used to compensate for pixel defects.

FIG. 3C illustrates a virtual image 320 that is the microdisplay image 310 of FIG. 3B viewed through the microlens array 255, according to one embodiment. When the microdisplay 250 is viewed through the microlens array 255, the virtual image 320 that corresponds to the existing image 300 is produced at the virtual display plane 210 when a retinal image is produced.

FIG. 3D illustrates an elemental image 330 produced without anti-aliasing and an elemental image produced with anti-aliasing 340, according to one embodiment. The existing image 300 may be preprocessed before the microdisplay image 310 is generated to produce anti-aliased elemental images. When the anti-aliased elemental images are included as the microdisplay image 310, an anti-aliased virtual image is produced at the virtual display plane 210 when a retinal image is produced. To compensate for defects of the microdisplay, the microdisplay image 310 may be processed to modify value of one or more pixels.

In one embodiment, stereoscopic image pairs are assumed to be oversampled relative to the resolution of the near-eye light field display device 260. Therefore, to produce anti-aliased elemental images for stereoscopic image pairs, a low-pass filter length {circumflex over (p)}_(v) may be determined by the size of the pixels of the microdisplay, as magnified by projection into the virtual display plane 210. The parameter {circumflex over (p)}_(v) may be computed as:

${\hat{p}}_{v} = {\frac{M_{p}}{w_{v}} = {\left( \frac{d_{v} - d_{e}}{d_{l}} \right)\left( \frac{p}{w_{v}} \right)}}$ where the length is expressed in normalized texture coordinate units, M corresponds to a magnification factor, and p is the normalized texture coordinate representing the location of a pixel that is close to the current pixel being processed, p0, described further herein.

The pseudo code shown in TABLE 7 may be included in a fragment shader program to perform preprocessing for anti-aliasing. The variable antialiasLength is the parameter {circumflex over (p)}_(v). As shown in the pseudo code in TABLE 7, p0 is ultimately assigned a new color during execution of a fragment shader program. The locations of neighboring pixels are stored in the temporary variable p, and then the colors of the neighboring pixels are averaged to determine a color that is assigned to p0. While the pseudo code in TABLE 7 implements a separable filter that is commonly chosen for efficiency, those skilled in the art will recognize that other filters, including non-separable filters are also possible.

TABLE 7   uniform sampler2D viewTexture; // anti-aliasing variables uniform int antialiasDirection; // filter direction (0: horizontal, 1: vertical) uniform float antialiasLength; // filter length in normalized texture coordinates uniform int antialiasNumSamples; // number of samples along filter length void main( ){  // evaluate texture coordinate  vec2 p0 = gl_TexCoord[0].st;  // Apply separable anti-aliasing filter, if needed  if (antialiasNumSamples > 0) {   // Evaluate temporary anit-aliasing variables   float antialiasSampleOffset = antialiasLength/float(antialiasNumSamples − 1);   float antialiasHalfLength = antialiasLength/2.0;   float antialiasWeight = 1.0/float(antialiasNumSamples;   vec3 color = vec3(0.0, 0.0, 0.0);   vec2 p;   //Apply 1D filter along horizontal or vertical axis   if (antialiasDirection == 0){    for (int i=0; i<antialiasNumSamples; i++){    p=p0+vec2(antialiasSampleOffset*float(i)-antialiasHalfLength, 0.0);    color += antialiasWeight*texture2D(viewTexture, p).rgb;    }   } else {    for (int i=0; i<antialiasNumSamples; i++){    p=p0+vec2(0.0, antialiasSampleOffset*float(i)-antialiasHalfLength);    color += antialiasWeight*texture2D(viewTexture, p).rgb;    }   }   gl_ FragColor = vec4(color, 1.0);  } else {  // No anti-aliasing is required, so pass through the input color  gl_FragColor = vec4(texture2D(viewTexture, p0).rgb, 1.0);  } }

FIG. 3E illustrates an existing image 350 to be processed for display by a near-eye light field display device, according to one embodiment. The pattern on the teapot consists of diagonal stripes alternating in red, green, and blue (the image is shown in greyscale).

FIG. 3F illustrates a microdisplay image 310 comprising the red channel of an elemental image corresponding to each pinlight in the pinlight array 276 or 277 when the pinlights are shaped as hexagons and are arranged in a hexagonal array, according to one embodiment. The microdisplay image 360 may be displayed by the microdisplay 271 and/or microdisplay 272. In other embodiments, the pinlights may have a different shape, such as square, rectangular, or circular.

FIG. 4 illustrates a parallel processing unit (PPU) 400, in accordance with one embodiment. In one embodiment, the PPU 400 is a multi-threaded processor that is implemented on one or more integrated circuit devices. The PPU 400 is a latency hiding architecture designed to process a large number of threads in parallel. A thread (i.e., a thread of execution) is an instantiation of a set of instructions configured to be executed by the PPU 400. In one embodiment, the PPU 400 is a graphics processing unit (GPU) configured to implement a graphics rendering pipeline for processing three-dimensional (3D) graphics data in order to generate two-dimensional (2D) image data for display on a display device such as a liquid crystal display (LCD) device. In other embodiments, the PPU 400 may be utilized for performing general-purpose computations. While one exemplary parallel processor is provided herein for illustrative purposes, it should be strongly noted that such processor is set forth for illustrative purposes only, and that any processor may be employed to supplement and/or substitute for the same.

As shown in FIG. 4, the PPU 400 includes an Input/Output (I/O) unit 405, a host interface unit 410, a front end unit 415, a scheduler unit 420, a work distribution unit 425, a hub 430, a crossbar (Xbar) 670, one or more general processing clusters (GPCs) 450, and one or more partition units 480. The PPU 400 may be connected to a host processor or other peripheral devices via a system bus 402. The PPU 400 may also be connected to a local memory comprising a number of memory devices 404. In one embodiment, the local memory may comprise a number of dynamic random access memory (DRAM) devices.

The I/O unit 405 is configured to transmit and receive communications (i.e., commands, data, etc.) from a host processor (not shown) over the system bus 402. The I/O unit 405 may communicate with the host processor directly via the system bus 402 or through one or more intermediate devices such as a memory bridge. In one embodiment, the I/O unit 405 implements a Peripheral Component Interconnect Express (PCIe) interface for communications over a PCIe bus. In alternative embodiments, the I/O unit 405 may implement other types of well-known interfaces for communicating with external devices.

The I/O unit 405 is coupled to a host interface unit 410 that decodes packets received via the system bus 402. In one embodiment, the packets represent commands configured to cause the PPU 400 to perform various operations. The host interface unit 410 transmits the decoded commands to various other units of the PPU 400 as the commands may specify. For example, some commands may be transmitted to the front end unit 415. Other commands may be transmitted to the hub 430 or other units of the PPU 400 such as one or more copy engines, a video encoder, a video decoder, a power management unit, etc. (not explicitly shown). In other words, the host interface unit 410 is configured to route communications between and among the various logical units of the PPU 400.

In one embodiment, a program executed by the host processor encodes a command stream in a buffer that provides workloads to the PPU 400 for processing. A workload may comprise a number of instructions and data to be processed by those instructions. The buffer is a region in a memory that is accessible (i.e., read/write) by both the host processor and the PPU 400. For example, the host interface unit 410 may be configured to access the buffer in a system memory connected to the system bus 402 via memory requests transmitted over the system bus 402 by the I/O unit 405. In one embodiment, the host processor writes the command stream to the buffer and then transmits a pointer to the start of the command stream to the PPU 400. The host interface unit 410 provides the front end unit 415 with pointers to one or more command streams. The front end unit 415 manages the one or more streams, reading commands from the streams and forwarding commands to the various units of the PPU 400.

The front end unit 415 is coupled to a scheduler unit 420 that configures the various GPCs 450 to process tasks defined by the one or more streams. The scheduler unit 420 is configured to track state information related to the various tasks managed by the scheduler unit 420. The state may indicate which GPC 450 a task is assigned to, whether the task is active or inactive, a priority level associated with the task, and so forth. The scheduler unit 420 manages the execution of a plurality of tasks on the one or more GPCs 450.

The scheduler unit 420 is coupled to a work distribution unit 425 that is configured to dispatch tasks for execution on the GPCs 450. The work distribution unit 425 may track a number of scheduled tasks received from the scheduler unit 420. In one embodiment, the work distribution unit 425 manages a pending task pool and an active task pool for each of the GPCs 450. The pending task pool may comprise a number of slots (e.g., 16 slots) that contain tasks assigned to be processed by a particular GPC 450. The active task pool may comprise a number of slots (e.g., 4 slots) for tasks that are actively being processed by the GPCs 450. As a GPC 450 finishes the execution of a task, that task is evicted from the active task pool for the GPC 450 and one of the other tasks from the pending task pool is selected and scheduled for execution on the GPC 450. If an active task has been idle on the GPC 450, such as while waiting for a data dependency to be resolved, then the active task may be evicted from the GPC 450 and returned to the pending task pool while another task in the pending task pool is selected and scheduled for execution on the GPC 450.

The work distribution unit 425 communicates with the one or more GPCs 450 via a XBar 470. The XBar 470 is an interconnect network that couples many of the units of the PPU 400 to other units of the PPU 400. For example, the XBar 470 may be configured to couple the work distribution unit 425 to a particular GPC 450. Although not shown explicitly, one or more other units of the PPU 400 are coupled to the host unit 410. The other units may also be connected to the XBar 470 via a hub 430.

The tasks are managed by the scheduler unit 420 and dispatched to a GPC 450 by the work distribution unit 425. The GPC 450 is configured to process the task and generate results. The results may be consumed by other tasks within the GPC 450, routed to a different GPC 450 via the XBar 470, or stored in the memory 404. The results can be written to the memory 404 via the partition units 480, which implement a memory interface for reading and writing data to/from the memory 404. In one embodiment, the PPU 400 includes a number U of partition units 480 that is equal to the number of separate and distinct memory devices 404 coupled to the PPU 400. A partition unit 480 will be described in more detail below in conjunction with FIG. 5B.

In one embodiment, a host processor executes a driver kernel that implements an application programming interface (API) that enables one or more applications executing on the host processor to schedule operations for execution on the PPU 400. An application may generate instructions (i.e., API calls) that cause the driver kernel to generate one or more tasks for execution by the PPU 400. The driver kernel outputs tasks to one or more streams being processed by the PPU 400. Each task may comprise one or more groups of related threads, referred to herein as a warp. A thread block may refer to a plurality of groups of threads including instructions to perform the task. Threads in the same group of threads may exchange data through shared memory. In one embodiment, a group of threads comprises 32 related threads.

FIG. 5A illustrates a GPC 450 of the PPU 400 of FIG. 4, in accordance with one embodiment. As shown in FIG. 5A, each GPC 450 includes a number of hardware units for processing tasks. In one embodiment, each GPC 450 includes a pipeline manager 510, a pre-raster operations unit (PROP) 515, a raster engine 525, a work distribution crossbar (WDX) 580, a memory management unit (MMU) 590, and one or more Texture Processing Clusters (TPCs) 520. It will be appreciated that the GPC 450 of FIG. 5A may include other hardware units in lieu of or in addition to the units shown in FIG. 5A.

In one embodiment, the operation of the GPC 450 is controlled by the pipeline manager 510. The pipeline manager 510 manages the configuration of the one or more TPCs 520 for processing tasks allocated to the GPC 450. In one embodiment, the pipeline manager 510 may configure at least one of the one or more TPC's 520 to implement at least a portion of a graphics rendering pipeline. For example, a TPC 520 may be configured to execute a vertex shader program on the programmable streaming multiprocessor (SM) 540. The pipeline manager 510 may also be configured to route packets received from the work distribution unit 425 to the appropriate logical units within the GPC 450. For example, some packets may be routed to fixed function hardware units in the PROP 515 and/or raster engine 525 while other packets may be routed to the TPCs 520 for processing by the primitive engine 535 or the SM 540.

The PROP unit 515 is configured to route data generated by the raster engine 525 and the TPCs 520 to a Raster Operations (ROP) unit in the partition unit 480, described in more detail below. The PROP unit 515 may also be configured to perform optimizations for color blending, organize pixel data, perform address translations, and the like.

The raster engine 525 includes a number of fixed function hardware units configured to perform various raster operations. In one embodiment, the raster engine 525 includes a setup engine, a course raster engine, a culling engine, a clipping engine, a fine raster engine, and a tile coalescing engine. The setup engine receives transformed vertices and generates plane equations associated with the geometric primitive defined by the vertices. The plane equations are transmitted to the coarse raster engine to generate coverage information (e.g., an x,y coverage mask for a tile) for the primitive. The output of the coarse raster engine may transmitted to the culling engine where fragments associated with the primitive that fail a z-test are culled, and transmitted to a clipping engine where fragments lying outside a viewing frustum are clipped. Those fragments that survive clipping and culling may be passed to a fine raster engine to generate attributes for the pixel fragments based on the plane equations generated by the setup engine. The output of the raster engine 580 comprises fragments to be processed, for example, by a fragment shader implemented within a TPC 520.

Each TPC 520 included in the GPC 450 includes an M-Pipe Controller (MPC) 530, a primitive engine 535, an SM 540, and one or more texture units 545. The MPC 530 controls the operation of the TPC 520, routing packets received from the pipeline manager 510 to the appropriate units in the TPC 520. For example, packets associated with a vertex may be routed to the primitive engine 535, which is configured to fetch vertex attributes associated with the vertex from the memory 404. In contrast, packets associated with a shader program may be transmitted to the SM 540.

In one embodiment, the texture units 545 are configured to load texture maps (e.g., a 2D array of texels) from the memory 404 and sample the texture maps to produce sampled texture values for use in shader programs executed by the SM 540. The texture units 545 implement texture operations such as filtering operations using mip-maps (i.e., texture maps of varying levels of detail). In one embodiment, each TPC 520 includes four (4) texture units 545.

The SM 540 comprises a programmable streaming processor that is configured to process tasks represented by a number of threads. Each SM 540 is multi-threaded and configured to execute a plurality of threads (e.g., 32 threads) from a particular group of threads concurrently. In one embodiment, the SM 540 implements a SIMD (Single-Instruction, Multiple-Data) architecture where each thread in a group of threads (i.e., a warp) is configured to process a different set of data based on the same set of instructions. All threads in the group of threads execute the same instructions. In another embodiment, the SM 540 implements a SIMT (Single-Instruction, Multiple Thread) architecture where each thread in a group of threads is configured to process a different set of data based on the same set of instructions, but where individual threads in the group of threads are allowed to diverge during execution. In other words, when an instruction for the group of threads is dispatched for execution, some threads in the group of threads may be active, thereby executing the instruction, while other threads in the group of threads may be inactive, thereby performing a no-operation (NOP) instead of executing the instruction. The SM 540 may be described in more detail below in conjunction with FIG. 6A.

The MMU 590 provides an interface between the GPC 450 and the partition unit 480. The MMU 590 may provide translation of virtual addresses into physical addresses, memory protection, and arbitration of memory requests. In one embodiment, the MMU 590 provides one or more translation lookaside buffers (TLBs) for improving translation of virtual addresses into physical addresses in the memory 404.

FIG. 5B illustrates a partition unit 480 of the PPU 400 of FIG. 4, in accordance with one embodiment. As shown in FIG. 5B, the partition unit 480 includes a Raster Operations (ROP) unit 550, a level two (L2) cache 560, a memory interface 570, and an L2 crossbar (XBar) 565. The memory interface 570 is coupled to the memory 404. Memory interface 570 may implement 16, 32, 64, 128-bit data buses, or the like, for high-speed data transfer. In one embodiment, the PPU 400 comprises U memory interfaces 570, one memory interface 570 per partition unit 480, where each partition unit 480 is connected to a corresponding memory device 404. For example, PPU 400 may be connected to up to U memory devices 404, such as graphics double-data-rate, version 5, synchronous dynamic random access memory (GDDR5 SDRAM). In one embodiment, the memory interface 570 implements a DRAM interface and U=6.

In one embodiment, the PPU 400 implements a multi-level memory hierarchy. The memory 404 is located off-chip in SDRAM coupled to the PPU 400. Data from the memory 404 may be fetched and stored in the L2 cache 560, which is located on-chip and is shared between the various GPCs 450. As shown, each partition unit 480 includes a portion of the L2 cache 560 associated with a corresponding memory device 404. Lower level caches may then be implemented in various units within the GPCs 450. For example, each of the SMs 540 may implement a level one (L1) cache. The L1 cache is private memory that is dedicated to a particular SM 540. Data from the L2 cache 560 may be fetched and stored in each of the L1 caches for processing in the functional units of the SMs 540. The L2 cache 560 is coupled to the memory interface 570 and the XBar 470.

The ROP unit 550 includes a ROP Manager 355, a Color ROP (CROP) unit 552, and a Z ROP (ZROP) unit 554. The CROP unit 552 performs raster operations related to pixel color, such as color compression, pixel blending, and the like. The ZROP unit 554 implements depth testing in conjunction with the raster engine 525. The ZROP unit 554 receives a depth for a sample location associated with a pixel fragment from the culling engine of the raster engine 525. The ZROP unit 554 tests the depth against a corresponding depth in a depth buffer for a sample location associated with the fragment. If the fragment passes the depth test for the sample location, then the ZROP unit 554 updates the depth buffer and transmits a result of the depth test to the raster engine 525. The ROP Manager 355 controls the operation of the ROP unit 550. It will be appreciated that the number of partition units 480 may be different than the number of GPCs 450 and, therefore, each ROP unit 550 may be coupled to each of the GPCs 450. Therefore, the ROP Manager 355 tracks packets received from the different GPCs 450 and determines which GPC 450 that a result generated by the ROP unit 550 is routed to. The CROP unit 552 and the ZROP unit 554 are coupled to the L2 cache 560 via an L2 XBar 565.

FIG. 6A illustrates the streaming multi-processor 540 of FIG. 5A, in accordance with one embodiment. As shown in FIG. 6A, the SM 540 includes an instruction cache 605, one or more scheduler units 610, a register file 620, one or more processing cores 650, one or more special function units (SFUs) 652, one or more load/store units (LSUs) 654, an interconnect network 680, and a shared memory/L1 cache 670.

As described above, the work distribution unit 425 dispatches tasks for execution on the GPCs 450 of the PPU 400. The tasks are allocated to a particular TPC 520 within a GPC 450 and, if the task is associated with a shader program, the task may be allocated to an SM 540. The scheduler unit 610 receives the tasks from the work distribution unit 425 and manages instruction scheduling for one or more groups of threads (i.e., warps) assigned to the SM 540. The scheduler unit 610 schedules threads for execution in groups of parallel threads, where each group is called a warp. In one embodiment, each warp includes 32 threads. The scheduler unit 610 may manage a plurality of different warps, scheduling the warps for execution and then dispatching instructions from the plurality of different warps to the various functional units (i.e., cores 650, SFUs 652, and LSUs 654) during each clock cycle.

In one embodiment, each scheduler unit 610 includes one or more instruction dispatch units 615. Each dispatch unit 615 is configured to transmit instructions to one or more of the functional units. In the embodiment shown in FIG. 6A, the scheduler unit 610 includes two dispatch units 615 that enable two different instructions from the same warp to be dispatched during each clock cycle. In alternative embodiments, each scheduler unit 610 may include a single dispatch unit 615 or additional dispatch units 615.

Each SM 540 includes a register file 620 that provides a set of registers for the functional units of the SM 540. In one embodiment, the register file 620 is divided between each of the functional units such that each functional unit is allocated a dedicated portion of the register file 620. In another embodiment, the register file 620 is divided between the different warps being executed by the SM 540. The register file 620 provides temporary storage for operands connected to the data paths of the functional units.

Each SM 540 comprises L processing cores 450. In one embodiment, the SM 540 includes a large number (e.g., 192, etc.) of distinct processing cores 450. Each core 450 may include a fully-pipelined, single-precision processing unit that includes a floating point arithmetic logic unit and an integer arithmetic logic unit. The core 450 may also include a double-precision processing unit including a floating point arithmetic logic unit. In one embodiment, the floating point arithmetic logic units implement the IEEE 754-4008 standard for floating point arithmetic. Each SM 540 also comprises M SFUs 652 that perform special functions (e.g., pixel blending operations, and the like), and N LSUs 654 that implement load and store operations between the shared memory/L1 cache 670 and the register file 620. In one embodiment, the SM 540 includes 192 cores 650, 32 SFUs 652, and 32 LSUs 654.

Each SM 540 includes an interconnect network 680 that connects each of the functional units to the register file 620 and the shared memory/L1 cache 670. In one embodiment, the interconnect network 680 is a crossbar that can be configured to connect any of the functional units to any of the registers in the register file 620 or the memory locations in shared memory/L1 cache 670.

The shared memory/L1 cache 670 is an array of on-chip memory that, in one embodiment, may be configured as either shared memory or an L1 cache, or a combination of both, as the application demands. For example, the shared memory/L1 cache 670 may comprise 64 kB of storage capacity. The shared memory/L1 cache 670 may be configured as 64 kB of either shared memory or L1 cache, or a combination of the two such as 16 kB of L cache and 48 kB of shared memory.

The PPU 400 described above may be configured to perform highly parallel computations much faster than conventional CPUs. Parallel computing has advantages in graphics processing, data compression, biometrics, stream processing algorithms, and the like.

In one embodiment, the PPU 400 comprises a graphics processing unit (GPU). The PPU 400 is configured to receive commands that specify shader programs for processing graphics data. Graphics data may be defined as a set of primitives such as points, lines, triangles, quads, triangle strips, and the like. Typically, a primitive includes data that specifies a number of vertices for the primitive (e.g., in a model-space coordinate system) as well as attributes associated with each vertex of the primitive. The PPU 400 can be configured to process the graphics primitives to generate a frame buffer (i.e., pixel data for each of the pixels of the display).

An application writes model data for a scene (i.e., a collection of vertices and attributes) to a memory such as a system memory or memory 404. The model data defines each of the objects that may be visible on a display. The application then makes an API call to the driver kernel that requests the model data to be rendered and displayed. The driver kernel reads the model data and writes commands to the one or more streams to perform operations to process the model data. The commands may reference different shader programs to be implemented on the SMs 540 of the PPU 400 including one or more of a vertex shader, hull shader, domain shader, geometry shader, and a pixel shader. For example, one or more of the SMs 540 may be configured to execute a vertex shader program that processes a number of vertices defined by the model data. In one embodiment, the different SMs 540 may be configured to execute different shader programs concurrently. For example, a first subset of SMs 540 may be configured to execute a vertex shader program while a second subset of SMs 540 may be configured to execute a pixel shader program. The first subset of SMs 540 processes vertex data to produce processed vertex data and writes the processed vertex data to the L2 cache 560 and/or the memory 404. After the processed vertex data is rasterized (i.e., transformed from three-dimensional data into two-dimensional data in screen space) to produce fragment data, the second subset of SMs 540 executes a pixel shader to produce processed fragment data, which is then blended with other processed fragment data and written to the frame buffer in memory 404. The vertex shader program and pixel shader program may execute concurrently, processing different data from the same scene in a pipelined fashion until all of the model data for the scene has been rendered to the frame buffer. Then, the contents of the frame buffer are transmitted to a display controller for display on a display device.

The PPU 400 may be included in a desktop computer, a laptop computer, a tablet computer, a smart-phone (e.g., a wireless, hand-held device), personal digital assistant (PDA), a digital camera, a hand-held electronic device, and the like. In one embodiment, the PPU 400 is embodied on a single semiconductor substrate. In another embodiment, the PPU 400 is included in a system-on-a-chip (SoC) along with one or more other logic units such as a reduced instruction set computer (RISC) CPU, a memory management unit (MMU), a digital-to-analog converter (DAC), and the like.

In one embodiment, the PPU 400 may be included on a graphics card that includes one or more memory devices 404 such as GDDR5 SDRAM. The graphics card may be configured to interface with a PCIe slot on a motherboard of a desktop computer that includes, e.g., a northbridge chipset and a southbridge chipset. In yet another embodiment, the PPU 400 may be an integrated graphics processing unit (iGPU) included in the chipset (i.e., Northbridge) of the motherboard.

This invention describes a method to render a near-eye light field—a set of rays emitted by a light field display in close proximity to the eye. The method allows more traditional image sources to be used to decide the color of each ray, rather than using brute force ray tracing. Image sources could be monoscopic (i.e., normal 2D images), or stereoscopic (one image for each eye, rendering with correct binocular perspective), or multiscopic, where multiple views are rendered for a set of different viewing positions and camera orientations. Multiscopic data is the data format used by multiview 3D televisions, but also encompassed other forms, such as multiple panoramas provided by applications like Google Earth®. A source image set in a variety of different data formats may be used to estimate the color of a ray, given knowledge of how the source images were generated and configuration of the particular near-eye light field display. In one embodiment a source image set is provided from a point light field camera or a camera array, such as a stereoscopic pair of light field cameras configured to directly sample the rays depicted by a stereoscopic near-eye light field display.

FIG. 6B illustrates a flowchart of a method 625 for producing elemental images for a near-eye light field display device 200 or 260 of FIGS. 2A, 2B, 2C, and 2D, in accordance with one embodiment. Although the method 625 is described in the context of a program executed by a processor, the method 625 may also be performed by custom circuitry or by a combination of custom circuitry and a program.

At step 630, existing images are received for generation of microdisplay images that each include an array of elemental images. The existing images may be individual two-dimensional images, stereoscopic image pairs, or multiscopic image sets. When eye-tracking is used, nearest-match source images in a multiscopic image set may be selected for each eye. In one embodiment, two or more source images of a multiscopic image set may be interpolated to produce a matching source image. At step 635, the existing images are preprocessed when anti-aliasing is enabled. In one embodiment, the existing images are filtered using the low-pass filter length {circumflex over (p)}_(v). When anti-aliasing is disabled, step 635 may be omitted. At step 640, the preprocessed existing images are stored as texture maps.

At step 645, a texel of a texture map corresponding to one of the existing images is mapped to a pixel on the microdisplay 250, left microdisplay 251, or right microdisplay 252. When the texture map corresponds to an individual two-dimensional image, the texel is mapped to a pixel on the left microdisplay 251 and a pixel on the right microdisplay 252. When the texture map corresponds to the left eye image of a stereoscopic image pair, the texel is mapped to a pixel on the left microdisplay 251. When the texture map corresponds to the right eye image of a stereoscopic image pair, the texel is mapped to a pixel on the right microdisplay 252. Steps 645 through 672 (shown as steps 685) may be performed in parallel to process multiple pixels of the left microdisplay 251 and right microdisplay 252. For example, each thread may receive coordinates of a texel and may map the texel coordinates to coordinates of the left microdisplay 251 or right microdisplay 252.

At step 655, an optical apparatus (e.g, microlens in the microlens array 255, left microlens array 256, right microlens array 257, pinlight in the left pinlight array 276, or pinlight in the right pinlight array 277) corresponding to the pixel on the microdisplay (e.g., microdisplay 250, left microdisplay 251, right microdisplay 252, left microdisplay 271, or right microdisplay 272, respectively) is identified. At step 660, a ray defined by the pixel and the optical apparatus is identified. For example, when the optical apparatus is a microlens array, the ray is defined by the (x,y,z) location of the pixel and the (x,y,z) location of the optical center of the microlens. When the optical apparatus is a pinlight array, the ray is defined by the (x,y,z) location of the pixel and the (x,y,z) location of the center of the pinlight. At step 665, the ray is intersected with a two-dimensional virtual display plane 210 to generate texture map coordinates corresponding to the pixel. At step 672, a color for the pixel is computed based on the texture map coordinates. Multiple texels (e.g., color samples) may be read from the texture map and combined (i.e., filtered) to compute the color for the pixel. When steps 645 through 672 are performed in parallel, each thread computes a color for the left microdisplay 251 or the right microdisplay 252.

At step 675, the computed colors for the pixels are stored to produce at least one microdisplay image. The colors may be stored in a data structure (e.g., frame buffer) for a microdisplay image in a memory. The pixel colors for the left microdisplay 251 define a left microdisplay image and the pixel colors for the right microdisplay 252 define a right microdisplay image. At step 682, the shader program determines if another existing image should be processed, and, if not, the shader program terminates. Otherwise, steps 685 are repeated to produce one or more additional microdisplay images.

As previously explained, pixel values of an array of elemental images (i.e., microdisplay image) may be modified to compensate for one or more defective pixels of a microdisplay. The ability to compensate for defective pixels enables the use of larger and higher resolution microdisplays that may have defects for near-eye light field display devices. In one embodiment, a computationally-efficient tomographic optimization framework may be used to exploit redundancy within the array of elemental images to compensate for defects.

The ISO 13406-2 standard identifies three types of flat panel display defects [ISO 2000]. A type-1 defect corresponds to a “hot” pixel (i.e., a group of color subpixels that are continuously illuminated). A type-2 defect is a so-called “dead” pixel (i.e., appearing continuously dark). Finally, a type-3 defect is a single color subpixel that is either continuously on or off. ISO 13406-2 classifies flat panel displays by the maximum allowed density of such defects, with additional constraints on the allowed spacing of clusters of various defect types.

An array of elemental images is displayed by a microdisplay of a near-eye light field display device because the near-eye light field display device includes multiple magnifiers (e.g., microlenses, pinholes, or pinlights). In contrast, an array conventional head-mounted display designs employ simple magnifiers, and without redundancy the ability to compensate for defects is very limited. Each of the microdisplay pixels in the near-eye light field display device produces a distinct ray of the emitted light field. The resulting bundle of rays, which passes through differing microlenses but within the viewing eye box, converges close to the position of a point within a virtual image at the virtual display plane. For a diffuse point, the radiances should be nearly identical; even for specular points, variation will be moderate (due to the small solid angle defined by the viewing eye box and the virtual point). As a result, redundancy in the array of elemental images provides a mechanism to compensate for display defects: distributing the error due to any given defect among the microdisplay pixels corresponding with the same point in the virtual image.

In the following discussion, the microdisplay pixels are represented as a column vector m of length N, with each element m_(n) representing the radiant emittance of a pixel. Similarly, the ideal retinal image is modeled as a column vector r of length M. Note that the ideal retinal image corresponds to the virtual image, including a virtual image that is computed using the method shown in FIG. 6B.

In one embodiment, the position (x,y,z coordinates) and size (e.g., diameter) of the viewer's pupil is known. As a result, the irradiance r_(m) at a given point in the retinal image is modeled as a weighted summation of microdisplay pixel emittances (corresponding with the integration of the set of optical rays entering the pupil and impinging on a portion of the retinal image, e.g., point). The image formation model may be formally expressed as:

$r_{m} = {\sum\limits_{n = 1}^{N}\;{P_{mn}m_{n}}}$ where P is an M×N projection matrix defining the contributions of microdisplay pixels to each retinal image point.

A defect correction algorithm provides a defect-corrected microdisplay image {circumflex over (m)} such that the retinal image is “optimally” reproduced. In other words, when the defect-corrected microdisplay image {circumflex over (m)} is viewed using the near-eye light field display device, a corrected retinal image is produced that approximates the ideal retinal image, r. In practice, optimality should be defined using a perceptual error metric. However, as described further herein, a least-squares criterion may be employed. For example, the following constrained linear least-squares formulation may be used:

$\begin{matrix} {{\underset{\hat{m}}{argmin}{{{P\hat{m}} - r}}_{2}^{2}},{{{such}\mspace{14mu}{that}\mspace{14mu} D\hat{m}} = {{d\mspace{14mu}{and}\mspace{14mu} 0} \leq \hat{m} \leq 1}},} & \left( {{Equation}\mspace{14mu} 1} \right) \end{matrix}$ where d is a column vector of length L, defining the radiant emittance of defective pixels, and D is an L×N binary matrix specifying the position of defects (i.e., row k of D has a single non-zero element identifying the defect).

Equation 1 can be efficiently solved using the simultaneous algebraic reconstruction technique (SART) developed by Andersen and Kak in 1984. The corrected microdisplay image {circumflex over (m)}^((k)) at iteration k is given by the following update rule: {circumflex over (m)} ^((k)) ={circumflex over (m)} ^((k-1)) −v∘(P ^(T)(w∘(P{circumflex over (m)} ^((k-1)) −r))), where ∘ defines the Hadamard (element-wise) matrix product and the weight vectors w and v are defined as follows:

$w_{m} = {{\frac{1}{\sum\limits_{n = 1}^{N}\; P_{mn}}\mspace{14mu}{and}\mspace{14mu} v_{n}} = {\frac{1}{\sum\limits_{m = 1}^{M}\; P_{mn}}.}}$ Equality and inequality constraints are enforced after each iteration (i.e., fixing and clamping values, respectively). The update rules can be implemented using GPUs for real-time optimization on high resolution images. One or more iterations are performed based on an error metric, so that the error between the ideal retinal image and the corrected retinal image may be minimized. In other embodiment, different optimization algorithms are used to solve the constrained linear least-squares formulation. Additionally, the formulation may be restated to more accurately account for the optical and perceptual properties of the eye and human visual system (HVS). The formulation is not meant to be restrictive, but instructive on the general form of defect correction, which requires understanding of the construction of the display, the mapping of pixels to rays, the imaging properties of the eye to create a retinal image, and the identification of corresponding pixels/rays that could be modified to address a subset of pixels that have defective properties.

In experiments, near-eye light field displays appear particularly well-suited for economical fabrication of large-format microdisplays; even if multi-reticle manufacturing is required, yield and cost can be controlled by exploiting redundancy within the element images. For example, a microdisplay having 100× the defects of a class IV defect category (per the ISO13406-2 standard) may be used to produce an acceptable quality image when defect compensation techniques are used.

FIG. 6C illustrates a flowchart of a method 602 for producing images for a near-eye light field display device 200 or 260 of FIGS. 2A, 2B, 2C, and 2D, in accordance with one embodiment. Although the method 602 is described in the context of a program executed by a processor, the method 602 may also be performed by custom circuitry or by a combination of custom circuitry and a program.

At step 632, defect information for a microdisplay is received. In one embodiment, the defect information is encoded as the vector d and matrix D. At step 636, a projection matrix, such as the matrix P, is received. The projection matrix encodes the contribution of each pixel of the microdisplay (without defects) to a point of the virtual and/or retinal image. The projection matrix is based on either the eyebox position or eye-tracking information. Eye tracking information enables accurate prediction of the retinal image and, therefore, corresponding pixels. However, in the absence of eye tracking information, corresponding pixels can be identified by the geometry/texture of the scene (correspondences may be identified by inspecting the elemental image array). However, without eye tracking information, accurate mapping of pixels to rays that actually enter the eye at a given instance cannot be determined. As the accuracy of eye tracking information increases, the set of rays entering the eye will be known with greater certainty. For instance, knowing the position of the eye in the eyebox is very helpful, knowing the pupil diameter is useful, but not as critical. Finally knowing the plane of focus of the eye would be the last, but least significant, component of the eye tracking information.

At step 642, an array of elemental images correspond to a retinal image, r is received. The array of elemental images is the ideal array of elemental images (i.e., microdisplay image) and does not account for defects of the microdisplay. At step 646, constraints that are imposed by the microdisplay are applied. Example constraints include the defect information and bounding the subpixel values computed for each pixel by 0 and 1. At step 656, an equation, such as equation 1, is solved to produce the corrected array of elemental images, {circumflex over (m)}. The corrected array of elemental images (i.e., the corrected microdisplay image) includes one or more modified subpixel values for at least one pixel of the microdisplay. The one or more modified subpixel values may be increased or decreased compared with the original subpixel values in the retinal image, r.

At step 674, the shader program determines if another iteration will be performed, and, if so, the shader program returns to step 646. Otherwise, at step 676, the shader program stores the modified values that were computed to generate the corrected array of elemental images {circumflex over (m)}. The corrected array of elemental images {circumflex over (m)} may then be displayed by the microdisplay to produce a corrected retinal image that substantially equals the retinal image r.

FIG. 6D illustrates subpixels within a pixel 662 of a microdisplay and superimposed pixels 686, 687, and 688 at a virtual display plane, in accordance with one embodiment. As shown in FIG. 6D, where three subpixels: red, green, and blue, are each represented by a different pattern, the three subpixels do not fill the pixel 662. The black region of the pixel 662 is opaque and covers a substantial portion of the pixel 662. In one embodiment, the three subpixels are not uniform in shape.

The pixel 662 is magnified and projected to form the virtual image. The resolution of the virtual image may be 200×100 pixels when the elemental images are superimposed to form the virtual image. Therefore, the resolution of the image that is used to produce the array of elemental images may have a similar resolution. In some cases, a higher resolution image is filtered to generate a lower resolution image that is then processed to generate the array of elemental images.

However, a higher resolution microdisplay (e.g., 1280×720 pixels) may be used when the generation of the elemental images accounts for the subpixel structure. More specifically, the subpixel structure for a pixel may include the location of each subpixel, shape of each subpixel, the opaque region of the pixel, the emissive profile of each subpixel (e.g., luminance or brightness across the subpixel), and the bit resolution of each subpixel. When the generation of the elemental images accounts for the subpixel structure, the perceived resolution of the virtual image may be increased.

When the projection matrix accounts for the subpixel structure of the pixels comprising the microdisplay, a high resolution image may be used to generate an array of elemental images. When viewed using the near-eye light field display device, the array of elemental images may superimpose the different elemental images in a manner that interleaves the different subpixel regions, as shown in FIG. 6D, to improve the perceived resolution of the virtual image. As shown in FIG. 6D, the pixels 686, 687, and 688 may each correspond to a different elemental image and the pixels 686, 687, and 688 are superimposed to produce a portion of a virtual image. The subpixels within the pixels 686, 687, and 688 are interleaved to produce a virtual image that seems to be higher resolution. The interleaving results from solving equation 1 using a projection matrix that accounts for the subpixel structure.

FIG. 7 is a block diagram of an example of a computing system 710 capable of implementing embodiments of the present disclosure. Computing system 710 broadly represents any single or multi-processor computing device or system capable of executing computer-readable instructions. Examples of computing system 710 include, without limitation, workstations, laptops, client-side terminals, servers, distributed computing systems, embedded devices, automotive computing devices, handheld devices (e.g., cellular phone, tablet computer, digital camera, etc.), worn devices (e.g. head-mounted or waist-worn devices), or any other computing system or device. In its most basic configuration, computing system 710 may include at least one processor 714 and a system memory 716.

Processor 714 generally represents any type or form of processing unit capable of processing data or interpreting and executing instructions. In certain embodiments, processor 714 may receive instructions from a software application or module. These instructions may cause processor 714 to perform the functions of one or more of the example embodiments described and/or illustrated herein.

System memory 716 generally represents any type or form of volatile or non-volatile storage device or medium capable of storing data and/or other computer-readable instructions. Examples of system memory 716 include, without limitation, RAM, ROM, flash memory, or any other suitable memory device. Although not required, in certain embodiments computing system 710 may include both a volatile memory unit (such as, for example, system memory 716) and a non-volatile storage device (such as, for example, primary storage device 732).

Computing system 710 may also include one or more components or elements in addition to processor 714 and system memory 716. For example, in the embodiment of FIG. 7, computing system 710 includes a memory controller 718, an input/output (I/O) controller 720, and a communication interface 722, each of which may be interconnected via a communication infrastructure 712. Communication infrastructure 712 generally represents any type or form of infrastructure capable of facilitating communication between one or more components of a computing device. Examples of communication infrastructure 712 include, without limitation, a communication bus (such as an Industry Standard Architecture (ISA), Peripheral Component Interconnect (PCI), PCI Express (PCIe), or similar bus) and a network.

Memory controller 718 generally represents any type or form of device capable of handling memory or data or controlling communication between one or more components of computing system 710. For example, memory controller 718 may control communication between processor 714, system memory 716, and I/O controller 720 via communication infrastructure 712.

I/O controller 720 generally represents any type or form of module capable of coordinating and/or controlling the input and output functions of a computing device. For example, I/O controller 720 may control or facilitate transfer of data between one or more elements of computing system 710, such as processor 714, system memory 716, communication interface 722, display adapter 726, input interface 730, and storage interface 734.

Communication interface 722 broadly represents any type or form of communication device or adapter capable of facilitating communication between example computing system 710 and one or more additional devices. For example, communication interface 722 may facilitate communication between computing system 710 and a private or public network including additional computing systems. Examples of communication interface 722 include, without limitation, a wired network interface (such as a network interface card), a wireless network interface (such as a wireless network interface card), a modem, and any other suitable interface. In one embodiment, communication interface 722 provides a direct connection to a remote server via a direct link to a network, such as the Internet. Communication interface 722 may also indirectly provide such a connection through any other suitable connection.

Communication interface 722 may also represent a host adapter configured to facilitate communication between computing system 710 and one or more additional network or storage devices via an external bus or communications channel. Examples of host adapters include, without limitation, Small Computer System Interface (SCSI) host adapters, Universal Serial Bus (USB) host adapters, IEEE (Institute of Electrical and Electronics Engineers) 1394 host adapters, Serial Advanced Technology Attachment (SATA) and External SATA (eSATA) host adapters. Advanced Technology Attachment (ATA) and Parallel ATA (PATA) host adapters, Fibre Channel interface adapters, Ethernet adapters, or the like. Communication interface 722 may also allow computing system 710 to engage in distributed or remote computing. For example, communication interface 722 may receive instructions from a remote device or send instructions to a remote device for execution.

As illustrated in FIG. 7, computing system 710 may also include at least one display device 724 coupled to communication infrastructure 712 via a display adapter 726. Display device 724 generally represents any type or form of device capable of visually displaying information forwarded by display adapter 726. Similarly, display adapter 726 generally represents any type or form of device configured to forward graphics, text, and other data for display on display device 724. In one embodiment, the display device 724 may be the near-eye light field display device 200 or the binocular near-eye light field display device shown in FIG. 2B, 2C, or 2D and one or more components shown in the computing system 710 may be integrated into an eyeglass form factor of the near-eye light field display device 200 or the binocular near-eye light field display device shown in FIG. 2B, 2C, or 2D. In one embodiment, one or more of the components shown in the computing system 710 are external to the eyeglass form factor and may be worn elsewhere by a user or may be entirely remote (i.e., connected via a wireless or wired communication system). A power supply (i.e., battery, power source, or power interface) may be integrated into the eyeglass form factor or may be external to the eyeglass form factor.

As illustrated in FIG. 7, computing system 710 may also include at least one input device 728 coupled to communication infrastructure 712 via an input interface 730. Input device 728 generally represents any type or form of input device capable of providing input, either computer- or human-generated, to computing system 710. Examples of input device 728 include, without limitation, a keyboard, a pointing device, a speech recognition device, an eye-tracking system, ambient light sensing system, depth sensor, light field camera, environmental motion-tracking sensor, an internal motion-tracking sensor, a gyroscopic sensor, accelerometer sensor, an electronic compass sensor, a charge-coupled device (CCD) image sensor, a complementary metal-oxide-semiconductor (CMOS) image sensor, or any other input device. In one embodiment, the input device 728 may be configured to provide the pupil characteristics such as the diameter, orientation, and position, to the processor 714. In one embodiment, the input device 728 may also receive communications from other near-eye light field display devices 200 (i.e., near-eye light field eyeglasses) in the environment, for example, when multiple users of near-eye light field display devices are nearby.

As illustrated in FIG. 7, computing system 710 may also include a primary storage device 732 and a backup storage device 733 coupled to communication infrastructure 712 via a storage interface 734. Storage devices 732 and 733 generally represent any type or form of storage device or medium capable of storing data and/or other computer-readable instructions. For example, storage devices 732 and 733 may be a magnetic disk drive (e.g., a so-called hard drive), a floppy disk drive, a magnetic tape drive, an optical disk drive, a flash drive, or the like. Storage interface 734 generally represents any type or form of interface or device for transferring data between storage devices 732 and 733 and other components of computing system 710.

In one example, databases 740 may be stored in primary storage device 732. Databases 740 may represent portions of a single database or computing device or it may represent multiple databases or computing devices. For example, databases 740 may represent (be stored on) a portion of computing system 710. Alternatively, databases 740 may represent (be stored on) one or more physically separate devices capable of being accessed by a computing device, such as computing system 710.

Continuing with reference to FIG. 7, storage devices 732 and 733 may be configured to read from and/or write to a removable storage unit configured to store computer software, data, or other computer-readable information. Examples of suitable removable storage units include, without limitation, a floppy disk, a magnetic tape, an optical disk, a flash memory device, or the like. Storage devices 732 and 733 may also include other similar structures or devices for allowing computer software, data, or other computer-readable instructions to be loaded into computing system 710. For example, storage devices 732 and 733 may be configured to read and write software, data, or other computer-readable information. Storage devices 732 and 733 may also be a part of computing system 710 or may be separate devices accessed through other interface systems.

Many other devices or subsystems may be connected to computing system 710. Conversely, all of the components and devices illustrated in FIG. 7 need not be present to practice the embodiments described herein. The devices and subsystems referenced above may also be interconnected in different ways from that shown in FIG. 7. Computing system 710 may also employ any number of software, firmware, and/or hardware configurations. For example, the example embodiments disclosed herein may be encoded as a computer program (also referred to as computer software, software applications, computer-readable instructions, or computer control logic) on a computer-readable medium.

The computer-readable medium containing the computer program may be loaded into computing system 710. All or a portion of the computer program stored on the computer-readable medium may then be stored in system memory 716 and/or various portions of storage devices 732 and 733. When executed by processor 714, a computer program loaded into computing system 710 may cause processor 714 to perform and/or be a means for performing the functions of the example embodiments described and/or illustrated herein. Additionally or alternatively, the example embodiments described and/or illustrated herein may be implemented in firmware and/or hardware.

For example, a computer program for determining an image and/or a mask to be encoded in a near-eye display layer 515 based on a target image 525 may be stored on the computer-readable medium and then stored in system memory 716 and/or various portions of storage devices 732 and 733. When executed by the processor 714, the computer program may cause the processor 714 to perform and/or be a means for performing the functions required for carrying out the determination of an image and/or the mask encoding different attenuation patterns discussed above.

While the foregoing disclosure sets forth various embodiments using specific block diagrams, flowcharts, and examples, each block diagram component, flowchart step, operation, and/or component described and/or illustrated herein may be implemented, individually and/or collectively, using a wide range of hardware, software, or firmware (or any combination thereof) configurations. In addition, any disclosure of components contained within other components should be considered as examples because many other architectures can be implemented to achieve the same functionality.

While various embodiments have been described above, it should be understood that they have been presented by way of example only, and not limitation. Thus, the breadth and scope of a preferred embodiment should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.

The process parameters and sequence of steps described and/or illustrated herein are given by way of example only. For example, while the steps illustrated andior described herein may be shown or discussed in a particular order, these steps do not necessarily need to be performed in the order illustrated or discussed. The various example methods described and/or illustrated herein may also omit one or more of the steps described or illustrated herein or include additional steps in addition to those disclosed.

While various embodiments have been described and/or illustrated herein in the context of fully functional computing systems, one or more of these example embodiments may be distributed as a program product in a variety of forms, regardless of the particular type of computer-readable media used to actually carry out the distribution. The embodiments disclosed herein may also be implemented using software modules that perform certain tasks. These software modules may include script, batch, or other executable files that may be stored on a computer-readable storage medium or in a computing system. These software modules may configure a computing system to perform one or more of the example embodiments disclosed herein. One or more of the software modules disclosed herein may be implemented in a cloud computing environment. Cloud computing environments may provide various services and applications via the Internet. These cloud-based services (e.g., software as a service, platform as a service, infrastructure as a service, etc.) may be accessible through a Web browser or other remote interface. Various functions described herein may be provided through a remote desktop environment or any other cloud-based computing environment.

The foregoing description, for purpose of explanation, has been described with reference to specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in view of the above teachings. The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as may be suited to the particular use contemplated.

Embodiments according to the invention are thus described. While the present disclosure has been described in particular embodiments, it should be appreciated that the invention should not be construed as limited by such embodiments, but rather construed according to the below claims. 

What is claimed is:
 1. A method, comprising: receiving defect information for a first pixel of a microdisplay of a near-eye light field display device, the first pixel contributing to a portion of a retinal image; receiving a projection matrix that encodes a contribution of each pixel of the microdisplay to the portion of the retinal image; identifying, based on the projection matrix, a second pixel of the microdisplay that also contributes to the portion of the retinal image; and modifying, based on the defect information and the projection matrix, a value of the second pixel within an array of elemental images to produce a corrected array of elemental images for display by the microdisplay.
 2. The method of claim 1, wherein the defect information indicates that the first pixel is a hot pixel comprising at least one continuously illuminated subpixel.
 3. The method of claim 1, wherein the defect information indicates that the first pixel is a dead pixel comprising at least one continuously dark subpixel.
 4. The method of claim 1, wherein the retinal image appears to a user of the near-eye light field display device at a two-dimensional virtual display plane beyond a near focus plane.
 5. The method of claim 4, wherein a depth of the two-dimensional virtual display plane relative to the user's eye is based on an eyeglass prescription.
 6. The method of claim 1, further comprising storing the modified value of the second pixel in a data structure for the corrected array of elemental images in a memory.
 7. The method of claim 1, wherein the corrected array of elemental images corresponds to a left-eye image or a right-eye image of a stereoscopic image pair.
 8. The method of claim 1, wherein multiple processing threads are configured to execute a fragment shader program to compute modified values for the second pixel and additional pixels of the corrected array of elemental images in parallel.
 9. The method of claim 1, wherein modifying the value of the second pixel comprises minimizing an error between an ideal retinal image corresponding to the array of elemental images and the retinal image.
 10. The method of claim 1, wherein each elemental image in the array of elemental images is a view of the retinal image corresponding to one optical apparatus within an array of optical apparatuses included in the near-eye light field display device.
 11. The method of claim 10, wherein the array of optical apparatus is an array of pinlights.
 12. The method of claim 10, wherein the array of optical apparatus is an array of microlenses.
 13. The method of claim 1, wherein the projection matrix is based on an eyebox position.
 14. The method of claim 1, wherein the projection matrix is based on eye-tracking information.
 15. The method of claim 1, wherein the projection matrix accounts for a subpixel structure of the microdisplay.
 16. The method of claim 1, wherein subpixels within the first pixel are interleaved with subpixels of the second pixel within a portion of the retinal image.
 17. A system comprising: a microdisplay of a near-eye light field display device, the microdisplay positioned between a near focus plane and a retina; and a processor configured to: receive defect information for a first pixel of the microdisplay, the first pixel contributing to a portion of a retinal image; receive a projection matrix that encodes a contribution of each pixel of the microdisplay to the portion of the retinal image; identify, based on the projection matrix, a second pixel of the microdisplay that also contributes to the portion of the retinal image; and adapt, based on the defect information and the projection matrix, a value of the second pixel within an array of elemental images to produce a corrected array of elemental images for display by the microdisplay.
 18. The system of claim 17, further comprising an optical apparatus positioned between the microdisplay and the retina.
 19. The system of claim 17, wherein the processor is further configured to process multiple processing threads that each execute a fragment shader program to compute values for the second pixel and additional pixels of the corrected array of elemental images in parallel.
 20. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, causes the processor to perform steps comprising: receiving defect information for a first pixel of a microdisplay of a near-eye light field display device, the first pixel contributing to a portion of a retinal image; receiving a projection matrix that encodes a contribution of each pixel of the microdisplay to the portion of the retinal image; identifying, based on the projection matrix, a second pixel of the microdisplay that also contributes to the portion of the retinal image; and modifying, based on the defect information and the projection matrix, a value of the second pixel within an array of elemental images to produce a corrected array of elemental images for display by the microdisplay. 